package com.cloud.client.service.fallback;

import com.cloud.client.service.FileService;
import com.cloud.client.util.AjaxResult;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * @packageName: com.cloud.client.service.fallback
 * @name: FileFallback
 * @description:
 * @author: 董定卓
 * @dateTime: 2019/7/15 15:51
 */
@Service
public class FileFallback implements FileService {
    /**
     * 文件上传
     *
     * @param map
     * @param file
     * @return
     */
    @Override
    public Object fileUpload(Map<String, Object> map, MultipartFile file) {
        return AjaxResult.failResult("文件上传失败,服务忙...请稍后重试！");
    }

    /**
     * 文件分页列表
     *
     * @param map
     * @return
     */
    @Override
    public Object filePage(Map<String, Object> map) {
        return AjaxResult.failResult("获取文件列表失败,服务忙...请稍后重试！");
    }


}
